export interface Route {
  name: string,
  path: string,
  page: string,
  children?: Array<Route>,
  meta?: any,
};

const routes: Array<Route> = [{
  name: 'App',
  path: '/App',
  page: 'Home',
  children: [{
    name: 'Chat',
    path: 'Chat',
    page: 'chat/Chat',
  }, {
    name: 'Discover',
    path: 'Discover',
    page: 'discover/Discover',
  }, {
    name: 'My',
    path: 'My',
    page: 'my/My',
  }]
}, {
  name: 'Sub',
  path: '/Sub',
  page: 'SubPage',
  children: [{
    name: 'ChatPanel',
    path: 'ChatPanel',
    page: 'chat/ChatPanel',
    meta: {
      keepAlive: true,
    }
  }, {
    name: 'GroupSetting',
    path: 'GroupSetting',
    page: 'chat/GroupSetting',
  }, {
    name: 'GroupMembers',
    path: 'GroupMembers',
    page: 'chat/GroupMembers',
  }, {
    name: 'GroupNotice',
    path: 'GroupNotice',
    page: 'chat/GroupNotice',
  }, {
    name: 'GroupQrcode',
    path: 'GroupQrcode',
    page: 'chat/GroupQrcode',
  }, {
    name: 'GroupName',
    path: 'GroupName',
    page: 'chat/GroupName',
  }, {
    name: 'ApplyList',
    path: 'ApplyList',
    page: 'chat/ApplyList',
  }, {
    name: 'QuitList',
    path: 'QuitList',
    page: 'chat/QuitList',
  }, {
    name: 'GroupHelper',
    path: 'GroupHelper',
    page: 'chat/GroupHelper',
  }, {
    name: 'MemberInfo',
    path: 'MemberInfo',
    page: 'chat/MemberInfo',
  }, {
    name: 'MyQrcode',
    path: 'MyQrcode',
    page: 'my/MyQrcode',
  }, {
    name: 'UserQrcode',
    path: 'UserQrcode',
    page: 'chat/UserQrcode',
  }, {
    name: 'UserBonus',
    path: 'UserBonus',
    page: 'chat/UserBonus',
  }, {
    name: 'GroupBonus',
    path: 'GroupBonus',
    page: 'chat/GroupBonus',
  }, {
    name: 'RedpacketDetail',
    path: 'RedpacketDetail',
    page: 'chat/RedpacketDetail',
  }, {
    name: 'Album',
    path: 'Album',
    page: 'my/Album',
  }, {
    name: 'MemberAlbum',
    path: 'MemberAlbum',
    page: 'chat/MemberAlbum',
  }, {
    name: 'GroupManage',
    path: 'GroupManage',
    page: 'chat/GroupManage',
  }, {
    name: 'AssignAdmin',
    path: 'AssignAdmin',
    page: 'chat/AssignAdmin',
  },{
    name: 'AssignOwner',
    path: 'AssignOwner',
    page: 'chat/AssignOwner',
  },{
    name: 'Notification',
    path: 'Notification',
    page: 'chat/Notification',
  },]
}];


export default routes;